<?php defined('SYSPATH') or die('No direct script access.');
/**
 * $Id: pianissibase.php 50 2008-07-27 09:06:29Z geertdd $
 *
 * @package    PianissiBoard
 * @author     Geert De Deckere
 */
abstract class Pianissibase_Controller extends Template_Controller {

	// Libraries
	public $session;

	// Models
	public $topic;
	public $post;

	// Wrapper template view name
	public $template = 'layout';

	/**
	 * Constructor
	 */
	public function __construct()
	{
		parent::__construct();

		// Show profiler while developing
		! IN_PRODUCTION and new Profiler;

		// Load libraries
		$this->session = Session::instance();

		// Load models
		$this->topic = new Topic_Model;
		$this->post = new Post_Model;

		// Initialize template variables
		$this->template->pagetitle = '';
		$this->template->content = '';
	}

}